﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace BackupMirthToTFS
{
    public static class Config
    {

        public static string BackupMirthToTFSConnString { get { return ConfigurationManager.ConnectionStrings["SysMonitoring"].ConnectionString; } }
        public static string EnableQueryUrl { get { return ConfigurationManager.AppSettings["EnableAppQueryUrl"].ToString(); } }
        public static string DisableQueryUrl { get { return ConfigurationManager.AppSettings["DisableAppQueryUrl"].ToString(); } }
        public static string AppUrl { get { return ConfigurationManager.AppSettings["AppUrl"].ToString(); } }
        public static string NotificationEmailAddress { get { return ConfigurationManager.AppSettings["NotificationEmail"].ToString(); } }
        public static string SmtpServer { get { return ConfigurationManager.AppSettings["SmtpServer"].ToString(); } }
        public static string NightlyCheckInComment { get { return ConfigurationManager.AppSettings["NightlyCheckInComment"].ToString(); } }
        
        public static int RunQueryCheckIntervalInSeconds { get { return 60 * int.Parse(ConfigurationManager.AppSettings["RunQueryCheckIntervalInMinutes"].ToString()); } }
        public static int RunMirthBackupCheckIntervalInSeconds { get { return 60 * 60 * int.Parse(ConfigurationManager.AppSettings["RunMirthBackupIntervalInHours"].ToString()); } }
   

    }
}